package com.weibo.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName PageControrller
 * @Author 天火
 * @Date 2019-03-01
 * @Version 1.0
 */
@Controller
public class PageControrller {

    @RequestMapping("/{page}")
    public String pageShow(@PathVariable String page){
        return page;
    }



    /**
     * 跳转至修改用户基本信息页面
     */
    @RequestMapping("userInfoIndex")
    public String userInfoIndex(){
        return "user/userinfo";
    }

    /**
     * 跳转至用户头像页面
     */
    @RequestMapping("faceIndex")
    public String face_index(){
        return "user/face";
    }

    /**
     *跳转至密码页面
     */
    @RequestMapping("/passwordIndex")
    public String passwordShow(){
        return "user/password";
    }

    /**
     * 密保页面
     */
    @RequestMapping("/questionIndex")
    public String questionShow(){
        return "user/question";
    }

    @RequestMapping("admin_login")
    public String adminIndex(){
        return "admin/adminlogin";
    }

}
